package edu.gdkm.demo5;

public class Animal {
    private String orgin;
    private String kind;

    public String getOrgin() {
        return orgin;
    }

    public void setOrgin(String orgin) {
        this.orgin = orgin;
    }

    public String getKind() {
        return kind;
    }

    public void setKind(String kind) {
        this.kind = kind;
    }

    public Animal(String orgin, String kind) {
        this.orgin = orgin;
        this.kind = kind;
    }

    public Animal() {
    }
    public String getContent(){
        return "产地："+orgin+"，种类："+kind;
    }
    public void bay(){
        System.out.println(this.getContent());
    }
}
